<?php
require_once WEB_ROOT. '/application/library/Bus.php';

class Bus_Page extends Bus {
    
    protected $_name = "pages";
    
    protected function _init() {
        
    }
    
    public function selectPage($module="", $action="") {
        $dto = $this->select(array(
            'fields'  => array(),
            'where'   => "module='{$module}' AND 
                          action='{$action}'"
        ));
        if(count($dto) > 0) {
            return $dto[0];
        }else{
            return false;
        }
    }
    
}
?>